<?php

namespace Api\Openapi\Callcenter;

use Api\Openapi\Util;

class Query {
    const URL = '/callcenter/calllist';

    /**
     * 查询通话记录
     *
     * @param string $model_flag 模块标识
     * @return bool
     */
    public function querySteats($model_flag){
        $body = array(
            'model_flag'     => $model_flag
        );
        $params = array(
            "header" => array(),
            "body" => $body,
        );
        $result = Util::request(self::URL, $params);
        return !empty($result['body']) ? $result['body'] : false;
    }
}